public class PetDog {
    public String name;
    public String color;
    public void barks(){
        System.out.println(name+"会汪汪叫");
    }
    public void wag(){
        System.out.println(name+"摇尾巴");
    }
    public static void main(String[] args){
        PetDog dogh = new PetDog();
        dogh.name = "阿黄";
        dogh.color = "黑黄";
        dogh.barks();
        dogh.wag();

        PetDog dogs = new PetDog();
        dogs.name = "赛虎";
        dogs.color = "棕色";
        dogs.barks();
        dogs.wag();
    }
}
